﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;


namespace ManagerVerification
{
    public static class WebUser
    {

        #region TableAdapters

        public static DataSet1TableAdapters.GET_ClientCheckListsTableAdapter GET_ClientCheckLists
        {
            get
            {
                DataSet1TableAdapters.GET_ClientCheckListsTableAdapter ta = new DataSet1TableAdapters.GET_ClientCheckListsTableAdapter();
                return ta;
            }
        }

        public static DataSet1TableAdapters.GET_CheckListTableAdapter GET_CheckList
        {
            get
            {
                DataSet1TableAdapters.GET_CheckListTableAdapter ta = new DataSet1TableAdapters.GET_CheckListTableAdapter();
                return ta;
            }
        }

        public static DataSet1TableAdapters.GET_ClientVerificationTableAdapter GET_ClientVerification
        {
            get
            {
                DataSet1TableAdapters.GET_ClientVerificationTableAdapter ta = new DataSet1TableAdapters.GET_ClientVerificationTableAdapter();
                return ta;
            }
        }

        public static DataSet1TableAdapters.GET_AdminVerificationTableAdapter GET_AdminVerification
        {
            get
            {
                DataSet1TableAdapters.GET_AdminVerificationTableAdapter ta = new DataSet1TableAdapters.GET_AdminVerificationTableAdapter();
                return ta;
            }
        }

        public static DataSet1TableAdapters.GET_ManagerVerificationTableAdapter GET_ManagerVerification
        {
            get
            {
                DataSet1TableAdapters.GET_ManagerVerificationTableAdapter ta = new DataSet1TableAdapters.GET_ManagerVerificationTableAdapter();
                return ta;
            }
        }

        public static DataSet1TableAdapters.SET_ManagerPasswordTableAdapter SET_ManagerPassword
        {
            get
            {
                DataSet1TableAdapters.SET_ManagerPasswordTableAdapter ta = new DataSet1TableAdapters.SET_ManagerPasswordTableAdapter();
                return ta;
            }
        }

        public static DataSet1TableAdapters.GET_ManagersTableAdapter GET_Managers
        {
            get
            {
                DataSet1TableAdapters.GET_ManagersTableAdapter ta = new DataSet1TableAdapters.GET_ManagersTableAdapter();
                return ta;
            }
        }

        public static DataSet1TableAdapters.ADD_ManagerAccountTableAdapter ADD_ManagerAccount
        {
            get
            {
                DataSet1TableAdapters.ADD_ManagerAccountTableAdapter ta = new DataSet1TableAdapters.ADD_ManagerAccountTableAdapter();
                return ta;
            }
        }

        #endregion

        #region Properties

        public static string UserName
        {
            get
            {
                if (HttpContext.Current.Session["UserName"] == null)
                {
                    return null;
                }

                return HttpContext.Current.Session["UserName"].ToString();
            }
            set
            {
                HttpContext.Current.Session["UserName"] = value.ToString();
            }
        }

        public static Guid? ManagerID
        {
            get
            {
                if (HttpContext.Current.Session["ManagerID"] == null)
                {
                    return null;
                }

                return Guid.Parse(HttpContext.Current.Session["ManagerID"].ToString());
            }
            set
            {
                HttpContext.Current.Session["ManagerID"] = value;
            }
        }

        #endregion
    }
}